<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>DB Monitor</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link href="webpage/css/lines.css" rel="stylesheet" type="text/css">
	<link href="webpage/js/tbox/box.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="webpage/js/jquery-1.8.0.min.js"></script>
	<script type="text/javascript" src="webpage/js/common.js"></script>
	<script type="text/javascript" src="webpage/js/tbox/box.js"></script>
	<script type="text/javascript" src="webpage/js/myjs.js"></script>
	
	<script type="text/javascript">
	
	$("document").ready(
			function loadInfo() {
			    $.getJSON("getAllServ", function(data) {
			        $("#info").html("");//清空info内容
			        $.each(data.serverList, function(i, item) {
			            $("#info").append(
			            					"<tr overstyle='on' id='"+item.SERVER_ID+"'>"+
											"<td>"+item.SERVER_ID+"</td>"
											+"<td>"+item.SERVER_NAME+"</td>"
											+"<td>"+item.SERVER_URL+"</td>"
											+"<td>"+item.DB_USERNAME+"</td>"
											+"<td>"+item.DB_PASSWORD+"</td>"
											+"<td>"+item.DB_DATABASE_NAME+"</td>"
											+"<td>"+item.DB_TABLE_NAME+"</td>"
											+"<td>"+item.DB_COLUMN_NAME+"</td>"
											+"<td>"+item.DATA_IN_TIME+"</td>"
											+"</tr>");
			        });
			   });
			});
	</script>
	
  </head>
  
  <body>
    <h1>数据达到监控</h1>
    
    <div class="page_tit">监控计划列表</div>
    
    	<div class="Toolbar_inbox">
			<a href="addser" class="btn_a"><span>添加</span></a>
		</div>
		
		<div class="list">
			<table width="100%" id="mytab" border="0" cellspacing="0"
				cellpadding="0">
				<thead>
					<th class="line_l">编号</th>
					<th class="line_l">服务器名称</th>
					<th class="line_l">服务器URL</th>
					<th class="line_l">DB_user_name</th>
					<th class="line_l">登录密码</th>
					<th class="line_l">数据库名</th>
					<th class="line_l">表名</th>
					<th class="line_l">字段名</th>
					<th class="line_l">标准值</th>
					<th class="line_l">检查时间点</th>
				</thead>
				
				<div id="info"></div>
				<!--  
				<volist name="lines" id="vo">
				
				<tr overstyle='on' id="line_{$vo['line_id']}">
				
					<div id="info"></div>
					
					
					<td>
						<a href = "{:U('Admin/editLine', array('line_id'=>$vo['line_id']))}" >编辑</a>&nbsp 
						<a href="javascript:void(0);" onclick="deleteLine({$vo['line_id']});" >删除</a> &nbsp 
						<a href="{:U('Admin/node', array('line_id'=>$vo['line_id']))}" >节点管理</a>

					</td>
				</tr>
				
				</volist>
				
				-->
			</table>
		</div>
		
  </body>
</html>
